<%--
  Created by IntelliJ IDEA.
  User: 32266
  Date: 2024/4/24
  Time: 13:05
  To change this template use File | Settings | File Templates.
--%>
<%--<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>--%>
<html>
<head>
    <title></title>
    <script type="text/javascript" src="/static/js/ajax.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
    <!-- 引入jQuery库 -->
    <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
    <style>
        #msg{
            display: block;
            position: fixed;
            margin-left: 45%;
            text-align: center;
            font-weight: 550;
            font-size: 18px;
            color: orangered;
        }

        #btn-msg{
            margin-left: 45%;
            text-align: center;
            font-weight: 550;
            font-size: 18px;
            color: orangered;
        }

        .flex-row-between{
            display: flex;
            flex-direction: row;
            justify-content: space-between;
        }

        .flex-row{
            display: flex;
            flex-direction: row;
        }

        .button-blue {
            padding: 5px 10px;
            background-color: #1f76f8;
            color: white;
            border: none;
            border-radius: 3px;
            text-align: center;
            text-decoration: none;
            display: inline-block;
            height: 40px;
            margin-top: 10px;
            font-weight: 550;
            font-size: 18px;
        }

        .button-blue:hover{
            background-color: #0363f3;
        }
    </style>
</head>
<body>
    <script>
        // 创建一个axios实例
        let axiosInstance = axios.create({
            baseURL: 'http://localhost:8282', // 设置请求的基础URL
            headers: {
                'Content-Type': 'application/json', // 设置请求头的Content-Type
                'token': localStorage.getItem('token') // 设置自定义的Authorization头，传token验证
            }
        });

        let token = localStorage.getItem('token');
        let baseURL = 'http://localhost:8282'; // 设置请求的基础URL
        let headersJson = {
            'Content-Type': 'application/json', // 设置请求头的Content-Type
            'token': localStorage.getItem('token') // 设置自定义的Authorization头，传token验证
        }

        function navigateTo(url){
            let token = localStorage.getItem('token');
            url += (url.indexOf("?") === -1 ? "?" : "&") + "token=" + encodeURIComponent(token);
            console.log('url', url);
            window.location.href = url;
        }
    </script>
</body>
</html>
